package com.atmc.mapper;

import com.atmc.entity.ArtLiker;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ArtLikerMapper {
    Long queryByIdAndName(@Param("articleId")Long articleId,@Param("userName")String userName);
    int insertOne(@Param("articleId")Long articleId,@Param("userName")String userName);
    int updateOneCre(@Param("articleId")Long articleId,@Param("userName")String userName);
    int updateOneDes(@Param("articleId")Long articleId,@Param("userName")String userName);
    List<Long> selectIdByName(@Param("userName")String userName);
    int deleteOneByIdAndName(@Param("articleId")Long articleId,@Param("userName")String userName);
}
